package cj.web.admin.domain;
/*
 *  
 *  
*/
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * 商城商品
 */
public class Goods extends DataTablePage implements Serializable {

    protected String id;
	protected String name;
	protected String images;
	protected String detailUrl;
	protected String category;
	protected String tkUrl;
	protected String goodsPrice;
	protected String sellCount;
	protected String percentage;
	protected String brokerage;
	protected String sellww;
	protected String sellId;
	protected String sellName;
	protected String type;
	protected String couponId;
	protected String couponCount;
	protected String couponSurplus;
	protected String couponDescs;
	protected String couponStartAt;
	protected String couponEndAt;
	protected String couponUrl;
	protected String goodsCouponUrl;
	protected String couponPrice;
	protected String order;//排序
	protected Integer deleteFlag;
	protected String createUser;
	protected String createAt;
	protected String updateUser;
	protected String updateAt;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getImages() {
		return images;
	}
	public void setImages(String images) {
		this.images = images;
	}
	public String getDetailUrl() {
		return detailUrl;
	}
	public void setDetailUrl(String detailUrl) {
		this.detailUrl = detailUrl;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getTkUrl() {
		return tkUrl;
	}
	public void setTkUrl(String tkUrl) {
		this.tkUrl = tkUrl;
	}
	public String getGoodsPrice() {
		return goodsPrice;
	}
	public void setGoodsPrice(String goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	public String getSellCount() {
		return sellCount;
	}
	public void setSellCount(String sellCount) {
		this.sellCount = sellCount;
	}
	public String getPercentage() {
		return percentage;
	}
	public void setPercentage(String percentage) {
		this.percentage = percentage;
	}
	public String getBrokerage() {
		return brokerage;
	}
	public void setBrokerage(String brokerage) {
		this.brokerage = brokerage;
	}
	public String getSellww() {
		return sellww;
	}
	public void setSellww(String sellww) {
		this.sellww = sellww;
	}
	public String getSellId() {
		return sellId;
	}
	public void setSellId(String sellId) {
		this.sellId = sellId;
	}
	public String getSellName() {
		return sellName;
	}
	public void setSellName(String sellName) {
		this.sellName = sellName;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getCouponId() {
		return couponId;
	}
	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}
	public String getCouponCount() {
		return couponCount;
	}
	public void setCouponCount(String couponCount) {
		this.couponCount = couponCount;
	}
	public String getCouponSurplus() {
		return couponSurplus;
	}
	public void setCouponSurplus(String couponSurplus) {
		this.couponSurplus = couponSurplus;
	}
	public String getCouponDescs() {
		return couponDescs;
	}
	public void setCouponDescs(String couponDescs) {
		this.couponDescs = couponDescs;
	}
	public String getCouponStartAt() {
		return couponStartAt;
	}
	public void setCouponStartAt(String couponStartAt) {
		this.couponStartAt = couponStartAt;
	}
	public String getCouponEndAt() {
		return couponEndAt;
	}
	public void setCouponEndAt(String couponEndAt) {
		this.couponEndAt = couponEndAt;
	}
	public String getCouponUrl() {
		return couponUrl;
	}
	public void setCouponUrl(String couponUrl) {
		this.couponUrl = couponUrl;
	}
	public String getGoodsCouponUrl() {
		return goodsCouponUrl;
	}
	public void setGoodsCouponUrl(String goodsCouponUrl) {
		this.goodsCouponUrl = goodsCouponUrl;
	}
	public String getCouponPrice() {
		return couponPrice;
	}
	public void setCouponPrice(String couponPrice) {
		this.couponPrice = couponPrice;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	public Integer getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getCreateAt() {
		return createAt;
	}
	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	public String getUpdateAt() {
		return updateAt;
	}
	public void setUpdateAt(String updateAt) {
		this.updateAt = updateAt;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result
				+ ((brokerage == null) ? 0 : brokerage.hashCode());
		result = prime * result
				+ ((category == null) ? 0 : category.hashCode());
		result = prime * result
				+ ((couponCount == null) ? 0 : couponCount.hashCode());
		result = prime * result
				+ ((couponDescs == null) ? 0 : couponDescs.hashCode());
		result = prime * result
				+ ((couponEndAt == null) ? 0 : couponEndAt.hashCode());
		result = prime * result
				+ ((couponId == null) ? 0 : couponId.hashCode());
		result = prime * result
				+ ((couponPrice == null) ? 0 : couponPrice.hashCode());
		result = prime * result
				+ ((couponStartAt == null) ? 0 : couponStartAt.hashCode());
		result = prime * result
				+ ((couponSurplus == null) ? 0 : couponSurplus.hashCode());
		result = prime * result
				+ ((couponUrl == null) ? 0 : couponUrl.hashCode());
		result = prime * result
				+ ((createAt == null) ? 0 : createAt.hashCode());
		result = prime * result
				+ ((createUser == null) ? 0 : createUser.hashCode());
		result = prime * result
				+ ((deleteFlag == null) ? 0 : deleteFlag.hashCode());
		result = prime * result
				+ ((detailUrl == null) ? 0 : detailUrl.hashCode());
		result = prime * result
				+ ((goodsCouponUrl == null) ? 0 : goodsCouponUrl.hashCode());
		result = prime * result
				+ ((goodsPrice == null) ? 0 : goodsPrice.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((images == null) ? 0 : images.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((order == null) ? 0 : order.hashCode());
		result = prime * result
				+ ((percentage == null) ? 0 : percentage.hashCode());
		result = prime * result
				+ ((sellCount == null) ? 0 : sellCount.hashCode());
		result = prime * result + ((sellId == null) ? 0 : sellId.hashCode());
		result = prime * result
				+ ((sellName == null) ? 0 : sellName.hashCode());
		result = prime * result + ((sellww == null) ? 0 : sellww.hashCode());
		result = prime * result + ((tkUrl == null) ? 0 : tkUrl.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		result = prime * result
				+ ((updateAt == null) ? 0 : updateAt.hashCode());
		result = prime * result
				+ ((updateUser == null) ? 0 : updateUser.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Goods other = (Goods) obj;
		if (brokerage == null) {
			if (other.brokerage != null)
				return false;
		} else if (!brokerage.equals(other.brokerage))
			return false;
		if (category == null) {
			if (other.category != null)
				return false;
		} else if (!category.equals(other.category))
			return false;
		if (couponCount == null) {
			if (other.couponCount != null)
				return false;
		} else if (!couponCount.equals(other.couponCount))
			return false;
		if (couponDescs == null) {
			if (other.couponDescs != null)
				return false;
		} else if (!couponDescs.equals(other.couponDescs))
			return false;
		if (couponEndAt == null) {
			if (other.couponEndAt != null)
				return false;
		} else if (!couponEndAt.equals(other.couponEndAt))
			return false;
		if (couponId == null) {
			if (other.couponId != null)
				return false;
		} else if (!couponId.equals(other.couponId))
			return false;
		if (couponPrice == null) {
			if (other.couponPrice != null)
				return false;
		} else if (!couponPrice.equals(other.couponPrice))
			return false;
		if (couponStartAt == null) {
			if (other.couponStartAt != null)
				return false;
		} else if (!couponStartAt.equals(other.couponStartAt))
			return false;
		if (couponSurplus == null) {
			if (other.couponSurplus != null)
				return false;
		} else if (!couponSurplus.equals(other.couponSurplus))
			return false;
		if (couponUrl == null) {
			if (other.couponUrl != null)
				return false;
		} else if (!couponUrl.equals(other.couponUrl))
			return false;
		if (createAt == null) {
			if (other.createAt != null)
				return false;
		} else if (!createAt.equals(other.createAt))
			return false;
		if (createUser == null) {
			if (other.createUser != null)
				return false;
		} else if (!createUser.equals(other.createUser))
			return false;
		if (deleteFlag == null) {
			if (other.deleteFlag != null)
				return false;
		} else if (!deleteFlag.equals(other.deleteFlag))
			return false;
		if (detailUrl == null) {
			if (other.detailUrl != null)
				return false;
		} else if (!detailUrl.equals(other.detailUrl))
			return false;
		if (goodsCouponUrl == null) {
			if (other.goodsCouponUrl != null)
				return false;
		} else if (!goodsCouponUrl.equals(other.goodsCouponUrl))
			return false;
		if (goodsPrice == null) {
			if (other.goodsPrice != null)
				return false;
		} else if (!goodsPrice.equals(other.goodsPrice))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (images == null) {
			if (other.images != null)
				return false;
		} else if (!images.equals(other.images))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (order == null) {
			if (other.order != null)
				return false;
		} else if (!order.equals(other.order))
			return false;
		if (percentage == null) {
			if (other.percentage != null)
				return false;
		} else if (!percentage.equals(other.percentage))
			return false;
		if (sellCount == null) {
			if (other.sellCount != null)
				return false;
		} else if (!sellCount.equals(other.sellCount))
			return false;
		if (sellId == null) {
			if (other.sellId != null)
				return false;
		} else if (!sellId.equals(other.sellId))
			return false;
		if (sellName == null) {
			if (other.sellName != null)
				return false;
		} else if (!sellName.equals(other.sellName))
			return false;
		if (sellww == null) {
			if (other.sellww != null)
				return false;
		} else if (!sellww.equals(other.sellww))
			return false;
		if (tkUrl == null) {
			if (other.tkUrl != null)
				return false;
		} else if (!tkUrl.equals(other.tkUrl))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		if (updateAt == null) {
			if (other.updateAt != null)
				return false;
		} else if (!updateAt.equals(other.updateAt))
			return false;
		if (updateUser == null) {
			if (other.updateUser != null)
				return false;
		} else if (!updateUser.equals(other.updateUser))
			return false;
		return true;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Goods [id=").append(id).append(", name=").append(name)
				.append(", images=").append(images).append(", detailUrl=")
				.append(detailUrl).append(", category=").append(category)
				.append(", tkUrl=").append(tkUrl).append(", goodsPrice=")
				.append(goodsPrice).append(", sellCount=").append(sellCount)
				.append(", percentage=").append(percentage)
				.append(", brokerage=").append(brokerage).append(", sellww=")
				.append(sellww).append(", sellId=").append(sellId)
				.append(", sellName=").append(sellName).append(", type=")
				.append(type).append(", couponId=").append(couponId)
				.append(", couponCount=").append(couponCount)
				.append(", couponSurplus=").append(couponSurplus)
				.append(", couponDescs=").append(couponDescs)
				.append(", couponStartAt=").append(couponStartAt)
				.append(", couponEndAt=").append(couponEndAt)
				.append(", couponUrl=").append(couponUrl)
				.append(", goodsCouponUrl=").append(goodsCouponUrl)
				.append(", couponPrice=").append(couponPrice)
				.append(", order=").append(order).append(", deleteFlag=")
				.append(deleteFlag).append(", createUser=").append(createUser)
				.append(", createAt=").append(createAt).append(", updateUser=")
				.append(updateUser).append(", updateAt=").append(updateAt)
				.append("]");
		return builder.toString();
	}
}